package objects;

import java.util.List;

public class Player implements Comparable<Player>{

	private String name;
	private String type;
	private Character character;
	private List<Card> cards;
	private int order;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Character getCharacter() {
		return character;
	}
	public void setCharacter(Character character) {
		this.character = character;
	}
	public List<Card> getCards() {
		return cards;
	}
	public void setCards(List<Card> cards) {
		this.cards = cards;
	}
	
	@Override
	public int compareTo(Player o) {
		if (order > o.order)
		{
			return 1;
		}
		else 
		{
			return -1;
		}
	}
	public int getOrder() {
		return order;
	}
	public void setOrder(int order) {
		this.order = order;
	}
	
	
	
}
